/*
	PlAr is Platform Arena: a 2D multiplayer shooting game
	Copyright (c) 2010, Antonio Ragagnin <spocchio@gmail.com>
    All rights reserved.

    This file is licensed under the New BSD License.
*/

package plar.core;

import plar.core.Action;

/**
 * This Action is in each Element by default, it is for auto-destruction of
 * TEMPORARY objects: - read the float Element.lifeTime (in seconds) - ask to
 * Level how many run() should be long this time - call DestroyAction after this
 * time.
 *
 * @author Antonio Ragagnin
 *
 */

public class ActionLifeTimer extends ActionTimer {

    public ActionLifeTimer()
    {

        super("destroy",0,0,false);


    }
    public ActionLifeTimer(float lt)
    {
        super("destroy",lt,0,false);

    }
    public void drin()
    {
        me.actions.getAction("destroy").force(null);
    }


}
